package com.jspgou.cms.entity.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the jc_full_give table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="jc_full_give"
 */

public abstract class BaseFullGive  implements Serializable {

	public static String REF = "FullGive";
	public static String PROP_DELETED = "deleted";
	public static String PROP_SUBTRACTMONEY = "subtractmoney";
	public static String PROP_DESCRIPTION = "description";
	public static String PROP_WEBSITE = "website";
	public static String PROP_DISABLE = "disable";
	public static String PROP_STORE = "store";
	public static String PROP_NAME = "name";
	public static String PROP_MINTOTALMONEY = "mintotalmoney";
	public static String PROP_STATUS = "status";
	public static String PROP_END_DATE = "endDate";
	public static String PROP_GIFTDESCRIPTION = "giftdescription";
	public static String PROP_START_DATE = "startDate";
	public static String PROP_GIFTNAME = "giftname";
	public static String PROP_ID = "Id";
	public static String PROP_MAXTOTALMONEY = "maxtotalmoney";


	// constructors
	public BaseFullGive () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseFullGive (java.lang.Long id) {
		this.setId(id);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseFullGive (
		java.lang.Long id,
		com.jspgou.cms.entity.Store store,
		com.jspgou.core.entity.Website website,
		java.lang.String name,
		java.math.BigDecimal mintotalmoney,
		java.math.BigDecimal maxtotalmoney,
		boolean disable,
		boolean deleted,
		java.lang.Integer status) {

		this.setId(id);
		this.setStore(store);
		this.setWebsite(website);
		this.setName(name);
		this.setMintotalmoney(mintotalmoney);
		this.setMaxtotalmoney(maxtotalmoney);
		this.setDisable(disable);
		this.setDeleted(deleted);
		this.setStatus(status);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Long id;

	// fields
	private java.lang.String name;
	private java.math.BigDecimal mintotalmoney;
	private java.math.BigDecimal maxtotalmoney;
	private java.math.BigDecimal subtractmoney;
	private java.util.Date startDate;
	private java.util.Date endDate;
	private boolean disable;
	private boolean deleted;
	private java.lang.Integer status;
	private java.lang.String giftname;
	private java.lang.String giftdescription;
	private java.lang.String description;

	// many to one
	private com.jspgou.cms.entity.Store store;
	private com.jspgou.core.entity.Website website;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="fullgive_id"
     */
	public java.lang.Long getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Long id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: name
	 */
	public java.lang.String getName () {
		return name;
	}

	/**
	 * Set the value related to the column: name
	 * @param name the name value
	 */
	public void setName (java.lang.String name) {
		this.name = name;
	}


	/**
	 * Return the value associated with the column: mintotalmoney
	 */
	public java.math.BigDecimal getMintotalmoney () {
		return mintotalmoney;
	}

	/**
	 * Set the value related to the column: mintotalmoney
	 * @param mintotalmoney the mintotalmoney value
	 */
	public void setMintotalmoney (java.math.BigDecimal mintotalmoney) {
		this.mintotalmoney = mintotalmoney;
	}


	/**
	 * Return the value associated with the column: maxtotalmoney
	 */
	public java.math.BigDecimal getMaxtotalmoney () {
		return maxtotalmoney;
	}

	/**
	 * Set the value related to the column: maxtotalmoney
	 * @param maxtotalmoney the maxtotalmoney value
	 */
	public void setMaxtotalmoney (java.math.BigDecimal maxtotalmoney) {
		this.maxtotalmoney = maxtotalmoney;
	}


	/**
	 * Return the value associated with the column: subtractmoney
	 */
	public java.math.BigDecimal getSubtractmoney () {
		return subtractmoney;
	}

	/**
	 * Set the value related to the column: subtractmoney
	 * @param subtractmoney the subtractmoney value
	 */
	public void setSubtractmoney (java.math.BigDecimal subtractmoney) {
		this.subtractmoney = subtractmoney;
	}


	/**
	 * Return the value associated with the column: startDate
	 */
	public java.util.Date getStartDate () {
		return startDate;
	}

	/**
	 * Set the value related to the column: startDate
	 * @param startDate the startDate value
	 */
	public void setStartDate (java.util.Date startDate) {
		this.startDate = startDate;
	}


	/**
	 * Return the value associated with the column: endDate
	 */
	public java.util.Date getEndDate () {
		return endDate;
	}

	/**
	 * Set the value related to the column: endDate
	 * @param endDate the endDate value
	 */
	public void setEndDate (java.util.Date endDate) {
		this.endDate = endDate;
	}


	/**
	 * Return the value associated with the column: is_disable
	 */
	public boolean getDisable () {
		return disable;
	}

	/**
	 * Set the value related to the column: is_disable
	 * @param disable the is_disable value
	 */
	public void setDisable (boolean disable) {
		this.disable = disable;
	}


	/**
	 * Return the value associated with the column: is_deleted
	 */
	public boolean getDeleted () {
		return deleted;
	}

	/**
	 * Set the value related to the column: is_deleted
	 * @param deleted the is_deleted value
	 */
	public void setDeleted (boolean deleted) {
		this.deleted = deleted;
	}


	/**
	 * Return the value associated with the column: status
	 */
	public java.lang.Integer getStatus () {
		return status;
	}

	/**
	 * Set the value related to the column: status
	 * @param status the status value
	 */
	public void setStatus (java.lang.Integer status) {
		this.status = status;
	}


	/**
	 * Return the value associated with the column: giftname
	 */
	public java.lang.String getGiftname () {
		return giftname;
	}

	/**
	 * Set the value related to the column: giftname
	 * @param giftname the giftname value
	 */
	public void setGiftname (java.lang.String giftname) {
		this.giftname = giftname;
	}


	/**
	 * Return the value associated with the column: giftdescription
	 */
	public java.lang.String getGiftdescription () {
		return giftdescription;
	}

	/**
	 * Set the value related to the column: giftdescription
	 * @param giftdescription the giftdescription value
	 */
	public void setGiftdescription (java.lang.String giftdescription) {
		this.giftdescription = giftdescription;
	}


	/**
	 * Return the value associated with the column: description
	 */
	public java.lang.String getDescription () {
		return description;
	}

	/**
	 * Set the value related to the column: description
	 * @param description the description value
	 */
	public void setDescription (java.lang.String description) {
		this.description = description;
	}


	/**
	 * Return the value associated with the column: store_id
	 */
	public com.jspgou.cms.entity.Store getStore () {
		return store;
	}

	/**
	 * Set the value related to the column: store_id
	 * @param store the store_id value
	 */
	public void setStore (com.jspgou.cms.entity.Store store) {
		this.store = store;
	}


	/**
	 * Return the value associated with the column: website_id
	 */
	public com.jspgou.core.entity.Website getWebsite () {
		return website;
	}

	/**
	 * Set the value related to the column: website_id
	 * @param website the website_id value
	 */
	public void setWebsite (com.jspgou.core.entity.Website website) {
		this.website = website;
	}



	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.jspgou.cms.entity.FullGive)) return false;
		else {
			com.jspgou.cms.entity.FullGive fullGive = (com.jspgou.cms.entity.FullGive) obj;
			if (null == this.getId() || null == fullGive.getId()) return false;
			else return (this.getId().equals(fullGive.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}